package barige.vehicle;

import barige.road.Road;

public abstract class Driveable {
    private final Road road;

    public Driveable(Road road) {
        this.road = road;
    }

    public abstract String getName();

    public void drive(){
        System.out.println(this.getName()+" : driving on "+road.getName());
    }

}
